<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Dom对象与Jquery包装集对象</title>
</head>
<body>
    <div id="mydiv">文本</div>
</body>
<script src="js/jquery-3.7.1.js"></script>
<script type="text/javascript">
    // dom对象
    var divDom = document.getElementById("mydiv");
    console.log(divDom);
    var divsDom = document.getElementsByTagName("div");
    console.log(divsDom); 
    // Jquery 对象
    var divJquery = $("#mydiv");
    console.log(divJquery);
</script>
</html>